package cn.itsource.pethome.service.impl;

import cn.itsource.pethome.domain.Employee;
import cn.itsource.pethome.mapper.EmployeeMapper;
import cn.itsource.pethome.query.EmployeeQuery;
import cn.itsource.pethome.service.IEmployeeService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class EmployeeServiceImpl extends BaseServiceImpl<Employee, EmployeeQuery>
        implements IEmployeeService {

    @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection")
    @Autowired
    private EmployeeMapper employeeMapper;

    @Override
    public List<Employee> findAllByJobId(Long jobId) {
        return employeeMapper.findAllByJobId(jobId);
    }

}
